module ReportTemplatesHelper

  def add_search_field_link(name)
    link_to_function name do |page|
      condition = {:sign => "<", :field => "created_at"}
      page.insert_html :bottom, :search_fields, :partial => 'search_field', :locals => {:condition => {:sign => "<", :field => "created_at"}}
    end
  end

end
